package org.ybxb.report.vo;

/**
 * @ProjectName: generator-report
 * @PackageName: org.ybxb.report.vo
 * @Description:
 * @Author: hy.bai
 * @Date: 2025-07-09 15:40
 */
public class Result<T> {

  private static final long serialVersionUID = 3958749917522978840L;

  /**
   * 状态:1成功,0失败
   */
  private Integer status;

  /**
   * 信息
   */
  private String message;

  /**
   * 数据
   */
  private T data;

  public Integer getStatus() {
    return status;
  }

  public Result setStatus(Integer status) {
    this.status = status;
    return this;
  }

  public String getMessage() {
    return message;
  }

  public Result setMessage(String message) {
    this.message = message;
    return this;
  }

  public T getData() {
    return data;
  }

  public Result setData(T data) {
    this.data = data;
    return this;
  }

  @Override
  public String toString() {
    return "Result{" + "status=" + status + ", message='" + message + '\'' + ", data=" + data + '}';
  }
}
